home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SNNSV32.ZIP / SNNSv3.2 / kernel / sources / kr_art1.ph < prev    next >
Text File  |  1994-04-25  |  5KB  |  194 lines

  1. /*****************************************************************************
  2.   FILE           : kr_art1.ph
  3.   SHORTNAME      : 
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : SNNS Kernel Function Prototypes for ART1-Networks
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Kai-Uwe Herrmann 
  10.   DATE           : 17.05.92
  11.  
  12.   CHANGED BY     : Sven Doering
  13.   IDENTIFICATION : @(#)kr_art1.ph    1.6 3/15/94
  14.   SCCS VERSION   : 1.6
  15.   LAST CHANGE    : 3/15/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20. #ifndef _KR_ART1_DEFINED_
  21. #define  _KR_ART1_DEFINED_
  22.  
  23. /* begin global definition section */
  24.  
  25.  int             Art1_NoOfRecUnits;
  26.  
  27.  struct Unit     *Art1_cl_unit; /* Pointer to ART1 cl-unit */
  28.  struct Unit     *Art1_nc_unit; /* Pointer to ART1 nc-unit */
  29.  
  30.  
  31.  
  32. /***************************************************************************/
  33. /* kra1_sort ()
  34.  
  35.    Set logical layer numbers and logical unit numbers in an ART1 network.
  36.    Also this function checks, whether the network is an ART1 network or not.
  37.    Returns an error code, when actual network is no ART1 architecture.
  38. */
  39.  krui_err  kra1_sort (
  40.  
  41.                             void
  42.  
  43.                            );
  44.  
  45. /***************************************************************************/
  46. /* kra1_init_i_act ()
  47.  
  48.    Sets the initial activation values of the units
  49. */
  50.  krui_err  kra1_init_i_act (
  51.  
  52.                                   double rho
  53.  
  54.                                  );
  55.  
  56.  
  57. /***************************************************************************/
  58. /* kra1_getClassNo ()
  59.  
  60.    Returns the number of the actually activated class J, 1 <= J <= M
  61. */
  62.  int  kra1_getClassNo (
  63.  
  64.                              void
  65.  
  66.                             );
  67.  
  68.  
  69.  
  70. /* end global definition section */
  71.  
  72. /* begin private definition section */
  73.  
  74. static TopoPtrArray      Art1_del_layer = NULL;   /* Points to first pointer
  75.                                                      within delay-layer
  76.                                                   */
  77.  
  78.  
  79. /**************** functions, local to this module ******************************/
  80.  
  81. static int                kra1_get_NoOfRecUnits (
  82.  
  83.                                                  void
  84.  
  85.                                                 );
  86.  
  87. static krui_err           kra1_get_InpUnits (
  88.  
  89.                                              TopoPtrArray *topo_ptr
  90.  
  91.                                             );
  92.  
  93. static krui_err           kra1_get_CmpUnits (
  94.  
  95.                                              TopoPtrArray *topo_ptr,
  96.                                              int *no_of_cmp_units
  97.  
  98.                                             );
  99.  
  100. static krui_err           kra1_get_RecUnits (
  101.  
  102.                                              TopoPtrArray *topo_ptr
  103.  
  104.                                             );
  105.  
  106. static krui_err           kra1_get_DelUnits (
  107.  
  108.                                              TopoPtrArray *topo_ptr,
  109.                                              int *no_of_del_units
  110.  
  111.                                             );
  112.  
  113. static krui_err           kra1_get_RstUnits (
  114.  
  115.                                              TopoPtrArray *topo_ptr,
  116.                                              int *no_of_rst_units
  117.  
  118.                                             );
  119.  
  120. static krui_err           kra1_get_SpecUnits (
  121.  
  122.                                               TopoPtrArray *topo_ptr,
  123.                                               int *no_of_spec_units
  124.  
  125.                                              );
  126.  
  127. static krui_err           kra1_TopoPtrArray (
  128.  
  129.                                              void
  130.  
  131.                                             );
  132.  
  133. static krui_err           kra1_Sites (
  134.  
  135.                                       void
  136.  
  137.                                      );
  138.  
  139. static krui_err           kra1_LinksToInpUnits (
  140.  
  141.                                                 TopoPtrArray *topo_inp_ptr
  142.  
  143.                                                );
  144.  
  145. static krui_err           kra1_LinksToCmpUnits (
  146.  
  147.                                                 TopoPtrArray *topo_cmp_ptr
  148.  
  149.                                                );
  150.  
  151. static krui_err           kra1_LinksToRecUnits (
  152.  
  153.                                                 TopoPtrArray *topo_rec_ptr
  154.  
  155.                                                );
  156.  
  157. static krui_err           kra1_LinksToDelUnits (
  158.  
  159.                                                 TopoPtrArray *topo_del_ptr
  160.  
  161.                                                );
  162.  
  163. static krui_err           kra1_LinksToRstUnits (
  164.  
  165.                                                 TopoPtrArray *topo_rst_ptr
  166.  
  167.                                                );
  168.  
  169. static krui_err           kra1_LinksToSpecUnits (
  170.  
  171.                                                  TopoPtrArray *topo_spec_ptr
  172.  
  173.                                                 );
  174.  
  175. static void               kra1_set_fix_weight (
  176.  
  177.                                                struct Unit *src_unit,
  178.                                                struct Unit *trgt_unit,
  179.                                                FlintType   *weight
  180.  
  181.                                               );
  182.  
  183. static krui_err           kra1_init_fix_weights (
  184.  
  185.                                                  void
  186.  
  187.                                                 );
  188.  
  189.  
  190. /* end private definition section */
  191.  
  192.  
  193. #endif
  194.